import http from '@http/http'
function severice () {
  let myseverice = {}
  // GET /api/studentManage/getLoginStudentInfo 获取当前登录的学生信息
  myseverice._getLoginStudentInfo = () => {
    return http.GET(`./api/studentManage/getLoginStudentInfo`)
  }
  // POST /api/studentManage/commitUpdateInfo 提交修改信息
  myseverice._commitUpdateInfo = data => {
    return http.POST(`./api/studentManage/commitUpdateInfo`, data)
  }
  // GET /api/studentManage/getCommitHistoryList 获取提交历史列表
  myseverice._getCommitHistoryList = () => {
    return http.GET(`./api/studentManage/getCommitHistoryList`)
  }
  // GET /api/studentManage/findCommitHistoryInfoById/{id} 根据审核表id查询详细
  myseverice._findCommitHistoryInfoById = id => {
    return http.GET(`./api/studentManage/findCommitHistoryInfoById/` + id)
  }
  // 学生获取学生个人信息
  myseverice._findPersonalInfoBySn = () => {
    return http.GET(`./api/studentManage/findPersonalInfoBySn/`)
  }
  // 保存学生个人信息
  myseverice._studenUpdateInfo = data => {
    return http.POST(`./api/studentManage/updateStudentInfo`, data)
  }
  // 删除紧急联系人
  myseverice._delsos = id => {
    return http.POST(`./api/studentManage/deleteEmergencyContact/${id}`)
  }
  // 根据sn查看学生家庭信息
  myseverice._findStudentFamilyRelationsBySn = sn => {
    return http.GET(`./api/studentManage/findFamilyRelationsBySn`)
  }
  // 根据sn查看学生家庭信息
  myseverice._findStudentFamilMember = sn => {
    return http.GET(`./api/studentManage/findStudentFamilMember`)
  }
  // 添加学生家庭成员信息
  myseverice._saveStudentFamilyMember = data => {
    return http.POST(`./api/studentManage/saveStudentFamilyMember`, data)
  }
  // 修改学生家庭成员信息
  myseverice._updateStudentFamilyMember = data => {
    return http.POST(`./api/studentManage/updateStudentFamilyMember`, data)
  }
  // 保存学生成员家庭信息
  myseverice._updateStudentFamilyInfo = data => {
    return http.POST(`./api/studentManage/updateStudentFamilyProfile`, data)
  }
  // 删除家庭成员
  myseverice._studentDelFamilyMember = id => {
    return http.GET(`./api/studentManage/deleteStudentFamilyMember/` + id)
  }
  return myseverice
}
export default severice
